<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" th:src="@{/webjars/jquery/3.3.1/jquery.js}"></script>
</head>
<body>
    <h1>成功</h1>

    <!--解析文本中的标签-->
    <div id="div" th:id="${hello}" th:class="${hello}" class="div" th:text="${hello}"></div>
    <div id="div1" th:id="${hello}" th:class="${hello}" class="div" th:utext="${hello}"></div>

    <h4 th:each="user:${users}" th:text="${user}"></h4>

    [[${users}]]

    <!--运算符-->

    <h5 th:each="user:${users}">
        <span th:inline="text">[[${user}]]</span>
    </h5>

    <script type="text/javascript" th:inline="javascript">
        var users=[[${users}]];
        $.each(users,function (i,e) {
            alert(i+"===="+e);
        })
    </script>
</body>
</html>